<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
<head>
<title>企业进销存导航区</title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
	<script language="JavaScript">
		function show_div(menu) {
			if (document.all.item(menu).style.display == "none") {
				document.all.item(menu).style.display = "block";
			} else {
				document.all.item(menu).style.display = "none";
			}
		}
	</script>
	<label style="font-size:12px">当前用户:&nbsp;&nbsp;<%=session.getAttribute("userName")%>&nbsp;&nbsp;(<%=session.getAttribute("actualName")%>)</label><br>
	<label style="font-size:12px">当前角色:&nbsp;&nbsp;<%=session.getAttribute("roleDescription")%></label><br>
	<a href="${ctx }/index.jsp" target="_parent" style="font-size:12px">注销</a><br>
	<a href="#" onClick="show_div('menu1')"><img src="${ctx}/images/left_top.GIF" width="186" height="29"></a>
	<table width="168" height="1024" border="0" cellpadding="0" cellspacing="0" class="tableBorder_bold">
		<tr>
			<td height="323" align="left" valign="top">
				<!--基础数据管理-->
				<a href="#" onClick="show_div('menu1')">
				<!--<img name="Imgmenu1" border="0" src="${ctx}/images/menu_1.JPG"align="middle" width="165" height="26">-->
				基础数据管理</a><br>
				<div id="menu1" style="display:none">
					<table width="165" border="0" cellpadding="0" cellspacing="0" class="tableBorder">
					<% String roleName = (String)session.getAttribute("roleName");
					   if("supplier".equals(roleName))
                        {%>
						<tr>
							<td width="18%" height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7"></td>
							<td width="82%"><a href="./datamgmt/supplier.jsp" target="mainFrame">供货商档案</a></td>
						</tr>
						<%}%>
						<%if("saler".equals(roleName))
                        {%>
                        <tr>
                            <td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7"></td>
                            <td><a href="${ctx }/customerAction.do?method=GotoAddCustomers" target="mainFrame">增加用户</a></td>
                        </tr>
                        <tr>
                            <td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7"></td>
                            <td><a href="${ctx }/customerAction.do?method=GetCustomers" target="mainFrame">管理档案</a></td>
                        </tr>
						 <%}%>
						 <%if("store keeper".equals(roleName))
                        {%>
						<tr>
							<td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7"></td>
							<td><a href="jcxx/gysinfo.html" target="mainFrame">货品类别及档案</a></td>
						</tr>
                         <%}%>
                        <tr>
                            <td width="18%" height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7"></td>
                            <td width="82%"><a href="${ctx }/goodsAction.do?method=goodsin" target="mainFrame">商品基本信息录入</a></td>
                        </tr>
                        <tr>
                            <td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7">
                            </td>
                            <td><a href="${ctx }/goodsAction.do?method=goodslist" target="mainFrame">商品基本信息查询</a></td>
                        </tr>
					</table>
				</div>
				
				<!--采购管理-->
				<a href="#" onClick="show_div('menu2')">
				<!--<img name="Imgmenu3" align="middle" src="${ctx}/images/menu_3.JPG" border="0" width="165" height="28">-->
				采购管理</a><br>
				<div id="menu2" style="display:none">
					<table width="165" border="0" cellpadding="0" cellspacing="0" class="tableBorder">
					    <%if("supplier".equals(session.getAttribute("roleName")) || "supplier manger".equals(session.getAttribute("roleName")) || 
					         "general manager".equals(session.getAttribute("roleName"))){%>
					    <tr>
                            <td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7">
                            </td>
                            <td><a href="${ctx }/pages/procurment/queryContract.jsp" target="mainFrame">查询采购合同</a></td>
                        </tr>
                        <%}%>
						<%if("supplier".equals(session.getAttribute("roleName"))){%>
                        <tr>
                            <td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7">
                            </td>
                            <td><a href="${ctx }/procurmentAction.do?method=presubmit" target="mainFrame">起草采购合同</a></td>
                        </tr>
						<%}%>
						<%if("supplier manger".equals(session.getAttribute("roleName"))){%>
                        <tr>
                            <td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7">
                            </td>
                            <td><a href="${ctx }/pages/procurment/approveContract.jsp" target="mainFrame">审批采购合同</a></td>
                        </tr>
                        <%}%>
                        <%if("general manager".equals(session.getAttribute("roleName"))){%>
                        <tr>
                            <td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7">
                            </td>
                            <td><a href="${ctx }/pages/procurment/verifyContract.jsp" target="mainFrame">审核采购合同</a></td>
                        </tr>
                        <%}%>
                        <%if("store keeper".equals(session.getAttribute("roleName"))){%>
                        <tr>
                            <td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7">
                            </td>
                            <td><a href="${ctx }/pages/procurment/queryRuku.jsp" target="mainFrame">商品入库查询</a></td>
                        </tr>
                        <tr>
                            <td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7">
                            </td>
                            <td><a href="${ctx }/procurmentAction.do?method=presprk" target="mainFrame">商品入库</a></td>
                        </tr>
                        <%}%>
					</table>
				</div> <!--销售管理-->
				<% 
                if("saler".equals(roleName)||"saler manager".equals(roleName)||"general manager".equals(roleName))
                        {%>  
				<a href="#" onClick="show_div('menu4')"><img name="Imgmenu4" align="middle"
					src="${ctx}/images/menu_4.JPG" border="0" width="165" height="28"></a><br>
				<div id="menu4" style="display:none">
					<table width="165" border="0" cellpadding="0" cellspacing="0" class="tableBorder">
						<c:if test="${roleName eq 'saler manager'}">
						<tr>
							<td width="18%" height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7"></td>
							<td width="82%"><a href="${ctx }/contactAction.do?method=input" target="mainFrame">新建合同</a></td>
						</tr>
						</c:if>
						<c:if test="${roleName eq 'saler manager' or roleName eq 'general manager'}">
						<tr>
							<td width="18%" height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7"></td>
							<td width="82%"><a href="${ctx }/contactAction.do?method=list" target="mainFrame">合同列表</a></td>
						</tr>
						</c:if>
					</table>
				</div> 
				
				<a href="#" onClick="show_div('menu5')"><img name="Imgmenu5" align="middle" src="${ctx}/images/menu_5.JPG"
					border="0" width="165" height="28"></a><br>
				<div id="menu5" style="display:none">
					<table width="165" border="0" cellpadding="0" cellspacing="0" class="tableBorder">
						<tr>
							<td width="18%" height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7"><br>
								<br></td>
							<td width="82%"><a href="./cxtj/xsxxchat.jsp" target="mainFrame">销售信息查询</a></td>
						</tr>
						 <tr>
                            <td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7"></td>
                            <td><a href="./kcgl/modifyPrice1.jsp" target="mainFrame">价格调整</a></td>
                        </tr>
						<tr>
							<td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7"></td>
							<td><a href="./cxtj/sprkchat.jsp" target="mainFrame">商品入库查询</a></td>
						</tr>
						<tr>
							<td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7"></td>
							<td><a href="./cxtj/spxsphchat.jsp" target="mainFrame">商品销售排行</a></td>
						</tr>
						<tr>
							<td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7"></td>
							<td><a href="./cxtj/spyearchat.jsp" target="mainFrame">年销售额分析</a></td>
						</tr>
					</table>
				</div> 
				
				<a href="#" onClick="show_div('menu6')"><img name="Imgmenu6" align="middle" src="${ctx}/images/menu_6.JPG"
					border="0" width="165" height="28"></a><br>
				<div id="menu6" style="display:none">
					<table width="165" border="0" cellpadding="0" cellspacing="0" class="tableBorder">
						<tr>
							<td width="18%" height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7">
							</td>
							<td width="82%"><a href="./wlgl/spxsjz/spxsjzchat.jsp" target="mainFrame">商品销售结账</a></td>
						</tr>
						<tr>
							<td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7">
							</td>
							<td><a href="./wlgl/rkthjz/rkthjzchat.jsp" target="mainFrame">入库退货结账</a></td>
						</tr>
						<tr>
							<td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7">
							</td>
							<td><a href="./wlgl/xsjzquest/xsjzchat.jsp" target="mainFrame">销售结账查询</a></td>
						</tr>
						<tr>
							<td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7">
							</td>
							<td><a href="./wlgl/sprkjz/sprkjzchat.jsp" target="mainFrame">商品入库结账</a></td>
						</tr>
						<tr>
							<td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7">
							</td>
							<td><a href="./wlgl/xsthjz/xsthjzchat.jsp" target="mainFrame">销售退货结账</a></td>
						</tr>
						<tr>
							<td height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7">
							</td>
							<td><a href="./wlgl/rkjzquest/rkjzchat.jsp" target="mainFrame">入库结账查询</a></td>
						</tr>
					</table>
				</div>
				<%}%>
				<!-- 仓库管理员 -->
				<c:if test="${roleName eq 'store keeper'}">
				<a href="#" onClick="show_div('menu7')"><img name="Imgmenu7" align="middle" src="${ctx}/images/menu_3.JPG"
					border="0" width="165" height="28"></a><br>
				<div id="menu7" style="display:none">
					<table width="165" border="0" cellpadding="0" cellspacing="0" class="tableBorder">
						<tr>
							<td width="18%" height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7"></td>
							<td width="82%"><a href="${ctx }/pages/contact/getGoods.jsp" target="mainFrame">销售领货</a></td>
						</tr>
					</table>
				</div>
			 	</c:if>
				<!-- 用户权限管理 -->
				<%if("admin".equals(roleName)){%> 
				<a href="#" onClick="show_div('menu7')"><img name="Imgmenu7" align="middle" src="${ctx}/images/menu_7.JPG"
					border="0" width="165" height="28"></a><br>
				<div id="menu7" style="display:none">
					<table width="165" border="0" cellpadding="0" cellspacing="0" class="tableBorder">
						<tr>
							<td width="18%" height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7"></td>
							<td width="82%"><a href="${ctx }/userAction.do?method=getRole" target="mainFrame">增加用户</a></td>
						</tr>
						<tr>
                            <td width="18%" height="24" align="center">&nbsp;<img src="${ctx}/images/subMenu_ico.GIF" width="4" height="7"></td>
                            <td width="82%"><a href="${ctx }/userAction.do?method=GetUsers" target="mainFrame">管理用户</a></td>
                        </tr>
					</table>
				</div>
			 <%}%>
			</td>
		</tr>
	</table>
</body>
</html>